import 'dart:io';

import 'package:flutter/foundation.dart';

class Constant {

  // 如果是web 运行，则调用本地的ip，这个本地
  // static const String k8UrlName = String.fromEnvironment("k8UrlName", defaultValue: "http://117.18.98.247:8616/");
  static String k8BaseUrl = (kIsWeb) ? "http://117.72.16.237:8616/" : "http://117.18.98.247:8616/"; // 如果不是web，则调用k8服务器的地址

  // 每日数据
  // 同城件或电商件签收表汇总
  static String localDeliveryStatisticsDataUrl = "${k8BaseUrl}HKCXCWXInterface/sameCityAndOnlineRetailersSingSummary.do";
  // 独立统计标识数据汇总
  static String independentStatisticalIdentificationDataUrl = "${k8BaseUrl}HKCXCWXInterface/identificationSummary.do";
  // 其他TOP30件签收表汇总
  static String otherTopThirtyDataUrl = "${k8BaseUrl}HKCXCWXInterface/otherThirtySummary.do";
  // 第三方
  static String thirdPartyDataUrl = "${k8BaseUrl}HKCXCWXInterface/thirdPartySummary.do";
  // CMS 票数表
  static String sameCitySummaryDataUrl = "${k8BaseUrl}HKCXCWXInterface/sameCitySummary.do";
  // 每天票數統計
  static String dailyVoteDataUrl = "${k8BaseUrl}HKCXCWXInterface/groupIdentificationSummary.do";
  // 每日资料 - 运单列印
  static String dailyInfoDataUrl = "${k8BaseUrl}HKCXCWXInterface/billPrint.do";
  // 查询签收信息，单个查询
  static String querySignForDataUrl = "${k8BaseUrl}HKCXCWXInterface/signStatistics.do";
  // todo 待提供接口
  // 根据客户编号查询客户信息
  static String queryCustomerDataUrl = "${k8BaseUrl}HKCXCWXInterface/getCustomer.do";

  // 客户新增/终止报表API接口  Customer addition   Terminate report
  static String customerAdditionTerminateReportUrl = "${k8BaseUrl}HKCXCWXInterface/addendReportFormsInfo.do";

  static String otherOnlineRetailersComparisonUrl = "${k8BaseUrl}HKCXCWXInterface/otherOnlineRetailersInfo.do";
  // RINCOS 账单录入信息
  static String accountsReceivableInfoUrl = "${k8BaseUrl}HKCXCWXInterface/accountsReceivableInfo.do";

  static String adjustInvoiceUrl = "${k8BaseUrl}HKCXCWXInterface/getAuditfrom.do";

  // 存储第三方
  static String saveThirdPartyStorageUrl = "";

  // 获取第三方的数据
  static String getThirdPartyDataUrl = "";


  // 默认是服务器的地址
  static const String notK8UrlName = String.fromEnvironment("notK8UrlName", defaultValue: "http://117.72.16.237:9090/");

  // static String notK8Url = "http://117.72.16.237:9090";
  static String notK8Url = "${notK8UrlName??"http://117.72.16.237:9090"}";

 // 删除第三方
  static String deleteThirdPartyUrl = "${notK8Url}api/third/del_third";
  // 查找第三方
  static String findThirdPartyUrl = "${notK8Url}api/third/by_third_data";
  // 保存第三方(单个)
  static String saveThirdPartySignUrl = "${notK8Url}api/third/save_third";
  // 保存第三方(批量)
  static String saveThirdPartyBatchUrl = "${notK8Url}api/third/save_all_third";
  // 报价记录获取
  // 报价记录获取
  static String QuotationRecordDataUrl = "${notK8Url}api/quotation_record/list";
  // 报价记录新增
  static String QuotationRecordAddUrl = "${notK8Url}api/quotation_record/save";
  // 报价记录删除
  static String QuotationRecordDeleteUrl = "${notK8Url}api/quotation_record/del";
  // 月费转套票
  // 报价记录获取
  static String MonthlyPackageTransFerDataUrl = "${notK8Url}api/monthly_package_transfer/list";
  // 报价记录新增
  static String MonthlyPackageTransFerAddUrl = "${notK8Url}api/monthly_package_transfer/save";
  // 报价记录删除
  static String MonthlyPackageTransFerDeleteUrl = "${notK8Url}api/monthly_package_transfer/del";
  // 停用客户
  // 停用客户记录获取
  static String DisCustomerRecordDataUrl = "${notK8Url}api/dis_customer_record/list";
  // 停用客户记录新增
  static String DisCustomerRecordAddUrl = "${notK8Url}api/dis_customer_record/save";
  // 停用客户记录删除
  static String DisCustomerRecordDeleteUrl = "${notK8Url}api/dis_customer_record/del";

  // Rincos
  static String RincosDeleteUrl = "${notK8Url}api/rincos/del";
  static String RincosDataUrl = "${notK8Url}api/rincos/list";
  static String RincosAddUrl = "${notK8Url}api/rincos/save";

}
